﻿package com.tudou.home
{
    import com.tudou.home.commands.*;
    import com.tudou.home.controller.*;
    import flash.display.*;
    import org.puremvc.as3.patterns.facade.*;

    public class PlayerFacade extends Facade
    {

        public function PlayerFacade()
        {
            return;
        }// end function

        public function start(param1:Sprite) : void
        {
            sendNotification(ExternalCommandSet.START_UP, param1);
            return;
        }// end function

        override protected function initializeController() : void
        {
            super.initializeController();
            registerCommand(ExternalCommandSet.START_UP, StartupCommand);
            registerCommand(ExternalCommandSet.BOOT, StartupCommand);
            return;
        }// end function

        public static function geInstance() : PlayerFacade
        {
            if (instance == null)
            {
                instance = new PlayerFacade;
            }
            return instance as PlayerFacade;
        }// end function

    }
}
